(0) Obligation:

Clauses:

preorder(T, Xs) :- preorder_dl(T, -(Xs, [])).
preorder_dl(nil, -(X, X)).
preorder_dl(tree(L, X, R), -(.(X, Xs), Zs)) :- ','(preorder_dl(L, -(Xs, Ys)), preorder_dl(R, -(Ys, Zs))).

Query: preorder(g,a)

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph ICLP10.

(2) Obligation:

Clauses:

preorder_dlA(nil, []).
preorder_dlA(tree(T21, T22, T23), .(T22, T25)) :- preorder_dlB(T21, T25, X26).
preorder_dlA(tree(T21, T22, T23), .(T22, T25)) :- ','(preorder_dlB(T21, T25, T28), preorder_dlA(T23, T28)).
preorder_dlB(nil, T35, T35).
preorder_dlB(tree(T44, T45, T46), .(T45, T48), X55) :- preorder_dlB(T44, T48, X54).
preorder_dlB(tree(T44, T45, T46), .(T45, T48), X55) :- ','(preorder_dlB(T44, T48, T51), preorder_dlB(T46, T51, X55)).
preorderC(T5, T7) :- preorder_dlA(T5, T7).

Query: preorderC(g,a)

(3) PrologToPiTRSProof (SOUND transformation)

We use the technique of [TOCL09]. With regard to the inferred argument filtering the predicates were used in the following modes:
preorderC_in: (b,f)
preorder_dlA_in: (b,f)
preorder_dlB_in: (b,f,f)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

preorderC_in_ga(T5, T7) → U7_ga(T5, T7, preorder_dlA_in_ga(T5, T7))
preorder_dlA_in_ga(nil, []) → preorder_dlA_out_ga(nil, [])
preorder_dlA_in_ga(tree(T21, T22, T23), .(T22, T25)) → U1_ga(T21, T22, T23, T25, preorder_dlB_in_gaa(T21, T25, X26))
preorder_dlB_in_gaa(nil, T35, T35) → preorder_dlB_out_gaa(nil, T35, T35)
preorder_dlB_in_gaa(tree(T44, T45, T46), .(T45, T48), X55) → U4_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T44, T48, X54))
preorder_dlB_in_gaa(tree(T44, T45, T46), .(T45, T48), X55) → U5_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T44, T48, T51))
U5_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T44, T48, T51)) → U6_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T46, T51, X55))
U6_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T46, T51, X55)) → preorder_dlB_out_gaa(tree(T44, T45, T46), .(T45, T48), X55)
U4_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T44, T48, X54)) → preorder_dlB_out_gaa(tree(T44, T45, T46), .(T45, T48), X55)
U1_ga(T21, T22, T23, T25, preorder_dlB_out_gaa(T21, T25, X26)) → preorder_dlA_out_ga(tree(T21, T22, T23), .(T22, T25))
preorder_dlA_in_ga(tree(T21, T22, T23), .(T22, T25)) → U2_ga(T21, T22, T23, T25, preorder_dlB_in_gaa(T21, T25, T28))
U2_ga(T21, T22, T23, T25, preorder_dlB_out_gaa(T21, T25, T28)) → U3_ga(T21, T22, T23, T25, preorder_dlA_in_ga(T23, T28))
U3_ga(T21, T22, T23, T25, preorder_dlA_out_ga(T23, T28)) → preorder_dlA_out_ga(tree(T21, T22, T23), .(T22, T25))
U7_ga(T5, T7, preorder_dlA_out_ga(T5, T7)) → preorderC_out_ga(T5, T7)

The argument filtering Pi contains the following mapping:
preorderC_in_ga(x1, x2)  =  preorderC_in_ga(x1)
U7_ga(x1, x2, x3)  =  U7_ga(x3)
preorder_dlA_in_ga(x1, x2)  =  preorder_dlA_in_ga(x1)
nil  =  nil
preorder_dlA_out_ga(x1, x2)  =  preorder_dlA_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
preorder_dlB_in_gaa(x1, x2, x3)  =  preorder_dlB_in_gaa(x1)
preorder_dlB_out_gaa(x1, x2, x3)  =  preorder_dlB_out_gaa
U4_gaa(x1, x2, x3, x4, x5, x6)  =  U4_gaa(x6)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
preorderC_out_ga(x1, x2)  =  preorderC_out_ga

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

Pi-finite rewrite system:
The TRS R consists of the following rules:

preorderC_in_ga(T5, T7) → U7_ga(T5, T7, preorder_dlA_in_ga(T5, T7))
preorder_dlA_in_ga(nil, []) → preorder_dlA_out_ga(nil, [])
preorder_dlA_in_ga(tree(T21, T22, T23), .(T22, T25)) → U1_ga(T21, T22, T23, T25, preorder_dlB_in_gaa(T21, T25, X26))
preorder_dlB_in_gaa(nil, T35, T35) → preorder_dlB_out_gaa(nil, T35, T35)
preorder_dlB_in_gaa(tree(T44, T45, T46), .(T45, T48), X55) → U4_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T44, T48, X54))
preorder_dlB_in_gaa(tree(T44, T45, T46), .(T45, T48), X55) → U5_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T44, T48, T51))
U5_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T44, T48, T51)) → U6_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T46, T51, X55))
U6_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T46, T51, X55)) → preorder_dlB_out_gaa(tree(T44, T45, T46), .(T45, T48), X55)
U4_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T44, T48, X54)) → preorder_dlB_out_gaa(tree(T44, T45, T46), .(T45, T48), X55)
U1_ga(T21, T22, T23, T25, preorder_dlB_out_gaa(T21, T25, X26)) → preorder_dlA_out_ga(tree(T21, T22, T23), .(T22, T25))
preorder_dlA_in_ga(tree(T21, T22, T23), .(T22, T25)) → U2_ga(T21, T22, T23, T25, preorder_dlB_in_gaa(T21, T25, T28))
U2_ga(T21, T22, T23, T25, preorder_dlB_out_gaa(T21, T25, T28)) → U3_ga(T21, T22, T23, T25, preorder_dlA_in_ga(T23, T28))
U3_ga(T21, T22, T23, T25, preorder_dlA_out_ga(T23, T28)) → preorder_dlA_out_ga(tree(T21, T22, T23), .(T22, T25))
U7_ga(T5, T7, preorder_dlA_out_ga(T5, T7)) → preorderC_out_ga(T5, T7)

The argument filtering Pi contains the following mapping:
preorderC_in_ga(x1, x2)  =  preorderC_in_ga(x1)
U7_ga(x1, x2, x3)  =  U7_ga(x3)
preorder_dlA_in_ga(x1, x2)  =  preorder_dlA_in_ga(x1)
nil  =  nil
preorder_dlA_out_ga(x1, x2)  =  preorder_dlA_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
preorder_dlB_in_gaa(x1, x2, x3)  =  preorder_dlB_in_gaa(x1)
preorder_dlB_out_gaa(x1, x2, x3)  =  preorder_dlB_out_gaa
U4_gaa(x1, x2, x3, x4, x5, x6)  =  U4_gaa(x6)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
preorderC_out_ga(x1, x2)  =  preorderC_out_ga

(5) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

PREORDERC_IN_GA(T5, T7) → U7_GA(T5, T7, preorder_dlA_in_ga(T5, T7))
PREORDERC_IN_GA(T5, T7) → PREORDER_DLA_IN_GA(T5, T7)
PREORDER_DLA_IN_GA(tree(T21, T22, T23), .(T22, T25)) → U1_GA(T21, T22, T23, T25, preorder_dlB_in_gaa(T21, T25, X26))
PREORDER_DLA_IN_GA(tree(T21, T22, T23), .(T22, T25)) → PREORDER_DLB_IN_GAA(T21, T25, X26)
PREORDER_DLB_IN_GAA(tree(T44, T45, T46), .(T45, T48), X55) → U4_GAA(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T44, T48, X54))
PREORDER_DLB_IN_GAA(tree(T44, T45, T46), .(T45, T48), X55) → PREORDER_DLB_IN_GAA(T44, T48, X54)
PREORDER_DLB_IN_GAA(tree(T44, T45, T46), .(T45, T48), X55) → U5_GAA(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T44, T48, T51))
U5_GAA(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T44, T48, T51)) → U6_GAA(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T46, T51, X55))
U5_GAA(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T44, T48, T51)) → PREORDER_DLB_IN_GAA(T46, T51, X55)
PREORDER_DLA_IN_GA(tree(T21, T22, T23), .(T22, T25)) → U2_GA(T21, T22, T23, T25, preorder_dlB_in_gaa(T21, T25, T28))
U2_GA(T21, T22, T23, T25, preorder_dlB_out_gaa(T21, T25, T28)) → U3_GA(T21, T22, T23, T25, preorder_dlA_in_ga(T23, T28))
U2_GA(T21, T22, T23, T25, preorder_dlB_out_gaa(T21, T25, T28)) → PREORDER_DLA_IN_GA(T23, T28)

The TRS R consists of the following rules:

preorderC_in_ga(T5, T7) → U7_ga(T5, T7, preorder_dlA_in_ga(T5, T7))
preorder_dlA_in_ga(nil, []) → preorder_dlA_out_ga(nil, [])
preorder_dlA_in_ga(tree(T21, T22, T23), .(T22, T25)) → U1_ga(T21, T22, T23, T25, preorder_dlB_in_gaa(T21, T25, X26))
preorder_dlB_in_gaa(nil, T35, T35) → preorder_dlB_out_gaa(nil, T35, T35)
preorder_dlB_in_gaa(tree(T44, T45, T46), .(T45, T48), X55) → U4_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T44, T48, X54))
preorder_dlB_in_gaa(tree(T44, T45, T46), .(T45, T48), X55) → U5_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T44, T48, T51))
U5_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T44, T48, T51)) → U6_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T46, T51, X55))
U6_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T46, T51, X55)) → preorder_dlB_out_gaa(tree(T44, T45, T46), .(T45, T48), X55)
U4_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T44, T48, X54)) → preorder_dlB_out_gaa(tree(T44, T45, T46), .(T45, T48), X55)
U1_ga(T21, T22, T23, T25, preorder_dlB_out_gaa(T21, T25, X26)) → preorder_dlA_out_ga(tree(T21, T22, T23), .(T22, T25))
preorder_dlA_in_ga(tree(T21, T22, T23), .(T22, T25)) → U2_ga(T21, T22, T23, T25, preorder_dlB_in_gaa(T21, T25, T28))
U2_ga(T21, T22, T23, T25, preorder_dlB_out_gaa(T21, T25, T28)) → U3_ga(T21, T22, T23, T25, preorder_dlA_in_ga(T23, T28))
U3_ga(T21, T22, T23, T25, preorder_dlA_out_ga(T23, T28)) → preorder_dlA_out_ga(tree(T21, T22, T23), .(T22, T25))
U7_ga(T5, T7, preorder_dlA_out_ga(T5, T7)) → preorderC_out_ga(T5, T7)

The argument filtering Pi contains the following mapping:
preorderC_in_ga(x1, x2)  =  preorderC_in_ga(x1)
U7_ga(x1, x2, x3)  =  U7_ga(x3)
preorder_dlA_in_ga(x1, x2)  =  preorder_dlA_in_ga(x1)
nil  =  nil
preorder_dlA_out_ga(x1, x2)  =  preorder_dlA_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
preorder_dlB_in_gaa(x1, x2, x3)  =  preorder_dlB_in_gaa(x1)
preorder_dlB_out_gaa(x1, x2, x3)  =  preorder_dlB_out_gaa
U4_gaa(x1, x2, x3, x4, x5, x6)  =  U4_gaa(x6)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
preorderC_out_ga(x1, x2)  =  preorderC_out_ga
PREORDERC_IN_GA(x1, x2)  =  PREORDERC_IN_GA(x1)
U7_GA(x1, x2, x3)  =  U7_GA(x3)
PREORDER_DLA_IN_GA(x1, x2)  =  PREORDER_DLA_IN_GA(x1)
U1_GA(x1, x2, x3, x4, x5)  =  U1_GA(x5)
PREORDER_DLB_IN_GAA(x1, x2, x3)  =  PREORDER_DLB_IN_GAA(x1)
U4_GAA(x1, x2, x3, x4, x5, x6)  =  U4_GAA(x6)
U5_GAA(x1, x2, x3, x4, x5, x6)  =  U5_GAA(x3, x6)
U6_GAA(x1, x2, x3, x4, x5, x6)  =  U6_GAA(x6)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x3, x5)
U3_GA(x1, x2, x3, x4, x5)  =  U3_GA(x5)

We have to consider all (P,R,Pi)-chains

(6) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

PREORDERC_IN_GA(T5, T7) → U7_GA(T5, T7, preorder_dlA_in_ga(T5, T7))
PREORDERC_IN_GA(T5, T7) → PREORDER_DLA_IN_GA(T5, T7)
PREORDER_DLA_IN_GA(tree(T21, T22, T23), .(T22, T25)) → U1_GA(T21, T22, T23, T25, preorder_dlB_in_gaa(T21, T25, X26))
PREORDER_DLA_IN_GA(tree(T21, T22, T23), .(T22, T25)) → PREORDER_DLB_IN_GAA(T21, T25, X26)
PREORDER_DLB_IN_GAA(tree(T44, T45, T46), .(T45, T48), X55) → U4_GAA(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T44, T48, X54))
PREORDER_DLB_IN_GAA(tree(T44, T45, T46), .(T45, T48), X55) → PREORDER_DLB_IN_GAA(T44, T48, X54)
PREORDER_DLB_IN_GAA(tree(T44, T45, T46), .(T45, T48), X55) → U5_GAA(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T44, T48, T51))
U5_GAA(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T44, T48, T51)) → U6_GAA(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T46, T51, X55))
U5_GAA(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T44, T48, T51)) → PREORDER_DLB_IN_GAA(T46, T51, X55)
PREORDER_DLA_IN_GA(tree(T21, T22, T23), .(T22, T25)) → U2_GA(T21, T22, T23, T25, preorder_dlB_in_gaa(T21, T25, T28))
U2_GA(T21, T22, T23, T25, preorder_dlB_out_gaa(T21, T25, T28)) → U3_GA(T21, T22, T23, T25, preorder_dlA_in_ga(T23, T28))
U2_GA(T21, T22, T23, T25, preorder_dlB_out_gaa(T21, T25, T28)) → PREORDER_DLA_IN_GA(T23, T28)

The TRS R consists of the following rules:

preorderC_in_ga(T5, T7) → U7_ga(T5, T7, preorder_dlA_in_ga(T5, T7))
preorder_dlA_in_ga(nil, []) → preorder_dlA_out_ga(nil, [])
preorder_dlA_in_ga(tree(T21, T22, T23), .(T22, T25)) → U1_ga(T21, T22, T23, T25, preorder_dlB_in_gaa(T21, T25, X26))
preorder_dlB_in_gaa(nil, T35, T35) → preorder_dlB_out_gaa(nil, T35, T35)
preorder_dlB_in_gaa(tree(T44, T45, T46), .(T45, T48), X55) → U4_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T44, T48, X54))
preorder_dlB_in_gaa(tree(T44, T45, T46), .(T45, T48), X55) → U5_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T44, T48, T51))
U5_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T44, T48, T51)) → U6_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T46, T51, X55))
U6_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T46, T51, X55)) → preorder_dlB_out_gaa(tree(T44, T45, T46), .(T45, T48), X55)
U4_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T44, T48, X54)) → preorder_dlB_out_gaa(tree(T44, T45, T46), .(T45, T48), X55)
U1_ga(T21, T22, T23, T25, preorder_dlB_out_gaa(T21, T25, X26)) → preorder_dlA_out_ga(tree(T21, T22, T23), .(T22, T25))
preorder_dlA_in_ga(tree(T21, T22, T23), .(T22, T25)) → U2_ga(T21, T22, T23, T25, preorder_dlB_in_gaa(T21, T25, T28))
U2_ga(T21, T22, T23, T25, preorder_dlB_out_gaa(T21, T25, T28)) → U3_ga(T21, T22, T23, T25, preorder_dlA_in_ga(T23, T28))
U3_ga(T21, T22, T23, T25, preorder_dlA_out_ga(T23, T28)) → preorder_dlA_out_ga(tree(T21, T22, T23), .(T22, T25))
U7_ga(T5, T7, preorder_dlA_out_ga(T5, T7)) → preorderC_out_ga(T5, T7)

The argument filtering Pi contains the following mapping:
preorderC_in_ga(x1, x2)  =  preorderC_in_ga(x1)
U7_ga(x1, x2, x3)  =  U7_ga(x3)
preorder_dlA_in_ga(x1, x2)  =  preorder_dlA_in_ga(x1)
nil  =  nil
preorder_dlA_out_ga(x1, x2)  =  preorder_dlA_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
preorder_dlB_in_gaa(x1, x2, x3)  =  preorder_dlB_in_gaa(x1)
preorder_dlB_out_gaa(x1, x2, x3)  =  preorder_dlB_out_gaa
U4_gaa(x1, x2, x3, x4, x5, x6)  =  U4_gaa(x6)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
preorderC_out_ga(x1, x2)  =  preorderC_out_ga
PREORDERC_IN_GA(x1, x2)  =  PREORDERC_IN_GA(x1)
U7_GA(x1, x2, x3)  =  U7_GA(x3)
PREORDER_DLA_IN_GA(x1, x2)  =  PREORDER_DLA_IN_GA(x1)
U1_GA(x1, x2, x3, x4, x5)  =  U1_GA(x5)
PREORDER_DLB_IN_GAA(x1, x2, x3)  =  PREORDER_DLB_IN_GAA(x1)
U4_GAA(x1, x2, x3, x4, x5, x6)  =  U4_GAA(x6)
U5_GAA(x1, x2, x3, x4, x5, x6)  =  U5_GAA(x3, x6)
U6_GAA(x1, x2, x3, x4, x5, x6)  =  U6_GAA(x6)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x3, x5)
U3_GA(x1, x2, x3, x4, x5)  =  U3_GA(x5)

We have to consider all (P,R,Pi)-chains

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 2 SCCs with 7 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

PREORDER_DLB_IN_GAA(tree(T44, T45, T46), .(T45, T48), X55) → U5_GAA(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T44, T48, T51))
U5_GAA(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T44, T48, T51)) → PREORDER_DLB_IN_GAA(T46, T51, X55)
PREORDER_DLB_IN_GAA(tree(T44, T45, T46), .(T45, T48), X55) → PREORDER_DLB_IN_GAA(T44, T48, X54)

The TRS R consists of the following rules:

preorderC_in_ga(T5, T7) → U7_ga(T5, T7, preorder_dlA_in_ga(T5, T7))
preorder_dlA_in_ga(nil, []) → preorder_dlA_out_ga(nil, [])
preorder_dlA_in_ga(tree(T21, T22, T23), .(T22, T25)) → U1_ga(T21, T22, T23, T25, preorder_dlB_in_gaa(T21, T25, X26))
preorder_dlB_in_gaa(nil, T35, T35) → preorder_dlB_out_gaa(nil, T35, T35)
preorder_dlB_in_gaa(tree(T44, T45, T46), .(T45, T48), X55) → U4_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T44, T48, X54))
preorder_dlB_in_gaa(tree(T44, T45, T46), .(T45, T48), X55) → U5_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T44, T48, T51))
U5_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T44, T48, T51)) → U6_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T46, T51, X55))
U6_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T46, T51, X55)) → preorder_dlB_out_gaa(tree(T44, T45, T46), .(T45, T48), X55)
U4_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T44, T48, X54)) → preorder_dlB_out_gaa(tree(T44, T45, T46), .(T45, T48), X55)
U1_ga(T21, T22, T23, T25, preorder_dlB_out_gaa(T21, T25, X26)) → preorder_dlA_out_ga(tree(T21, T22, T23), .(T22, T25))
preorder_dlA_in_ga(tree(T21, T22, T23), .(T22, T25)) → U2_ga(T21, T22, T23, T25, preorder_dlB_in_gaa(T21, T25, T28))
U2_ga(T21, T22, T23, T25, preorder_dlB_out_gaa(T21, T25, T28)) → U3_ga(T21, T22, T23, T25, preorder_dlA_in_ga(T23, T28))
U3_ga(T21, T22, T23, T25, preorder_dlA_out_ga(T23, T28)) → preorder_dlA_out_ga(tree(T21, T22, T23), .(T22, T25))
U7_ga(T5, T7, preorder_dlA_out_ga(T5, T7)) → preorderC_out_ga(T5, T7)

The argument filtering Pi contains the following mapping:
preorderC_in_ga(x1, x2)  =  preorderC_in_ga(x1)
U7_ga(x1, x2, x3)  =  U7_ga(x3)
preorder_dlA_in_ga(x1, x2)  =  preorder_dlA_in_ga(x1)
nil  =  nil
preorder_dlA_out_ga(x1, x2)  =  preorder_dlA_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
preorder_dlB_in_gaa(x1, x2, x3)  =  preorder_dlB_in_gaa(x1)
preorder_dlB_out_gaa(x1, x2, x3)  =  preorder_dlB_out_gaa
U4_gaa(x1, x2, x3, x4, x5, x6)  =  U4_gaa(x6)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
preorderC_out_ga(x1, x2)  =  preorderC_out_ga
PREORDER_DLB_IN_GAA(x1, x2, x3)  =  PREORDER_DLB_IN_GAA(x1)
U5_GAA(x1, x2, x3, x4, x5, x6)  =  U5_GAA(x3, x6)

We have to consider all (P,R,Pi)-chains

(10) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(11) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

PREORDER_DLB_IN_GAA(tree(T44, T45, T46), .(T45, T48), X55) → U5_GAA(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T44, T48, T51))
U5_GAA(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T44, T48, T51)) → PREORDER_DLB_IN_GAA(T46, T51, X55)
PREORDER_DLB_IN_GAA(tree(T44, T45, T46), .(T45, T48), X55) → PREORDER_DLB_IN_GAA(T44, T48, X54)

The TRS R consists of the following rules:

preorder_dlB_in_gaa(nil, T35, T35) → preorder_dlB_out_gaa(nil, T35, T35)
preorder_dlB_in_gaa(tree(T44, T45, T46), .(T45, T48), X55) → U4_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T44, T48, X54))
preorder_dlB_in_gaa(tree(T44, T45, T46), .(T45, T48), X55) → U5_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T44, T48, T51))
U4_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T44, T48, X54)) → preorder_dlB_out_gaa(tree(T44, T45, T46), .(T45, T48), X55)
U5_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T44, T48, T51)) → U6_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T46, T51, X55))
U6_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T46, T51, X55)) → preorder_dlB_out_gaa(tree(T44, T45, T46), .(T45, T48), X55)

The argument filtering Pi contains the following mapping:
nil  =  nil
tree(x1, x2, x3)  =  tree(x1, x2, x3)
preorder_dlB_in_gaa(x1, x2, x3)  =  preorder_dlB_in_gaa(x1)
preorder_dlB_out_gaa(x1, x2, x3)  =  preorder_dlB_out_gaa
U4_gaa(x1, x2, x3, x4, x5, x6)  =  U4_gaa(x6)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
PREORDER_DLB_IN_GAA(x1, x2, x3)  =  PREORDER_DLB_IN_GAA(x1)
U5_GAA(x1, x2, x3, x4, x5, x6)  =  U5_GAA(x3, x6)

We have to consider all (P,R,Pi)-chains

(12) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(13) Obligation:

Q DP problem:
The TRS P consists of the following rules:

PREORDER_DLB_IN_GAA(tree(T44, T45, T46)) → U5_GAA(T46, preorder_dlB_in_gaa(T44))
U5_GAA(T46, preorder_dlB_out_gaa) → PREORDER_DLB_IN_GAA(T46)
PREORDER_DLB_IN_GAA(tree(T44, T45, T46)) → PREORDER_DLB_IN_GAA(T44)

The TRS R consists of the following rules:

preorder_dlB_in_gaa(nil) → preorder_dlB_out_gaa
preorder_dlB_in_gaa(tree(T44, T45, T46)) → U4_gaa(preorder_dlB_in_gaa(T44))
preorder_dlB_in_gaa(tree(T44, T45, T46)) → U5_gaa(T46, preorder_dlB_in_gaa(T44))
U4_gaa(preorder_dlB_out_gaa) → preorder_dlB_out_gaa
U5_gaa(T46, preorder_dlB_out_gaa) → U6_gaa(preorder_dlB_in_gaa(T46))
U6_gaa(preorder_dlB_out_gaa) → preorder_dlB_out_gaa

The set Q consists of the following terms:

preorder_dlB_in_gaa(x0)
U4_gaa(x0)
U5_gaa(x0, x1)
U6_gaa(x0)

We have to consider all (P,Q,R)-chains.

(14) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • U5_GAA(T46, preorder_dlB_out_gaa) → PREORDER_DLB_IN_GAA(T46)
    The graph contains the following edges 1 >= 1

  • PREORDER_DLB_IN_GAA(tree(T44, T45, T46)) → PREORDER_DLB_IN_GAA(T44)
    The graph contains the following edges 1 > 1

  • PREORDER_DLB_IN_GAA(tree(T44, T45, T46)) → U5_GAA(T46, preorder_dlB_in_gaa(T44))
    The graph contains the following edges 1 > 1

(15) YES

(16) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

PREORDER_DLA_IN_GA(tree(T21, T22, T23), .(T22, T25)) → U2_GA(T21, T22, T23, T25, preorder_dlB_in_gaa(T21, T25, T28))
U2_GA(T21, T22, T23, T25, preorder_dlB_out_gaa(T21, T25, T28)) → PREORDER_DLA_IN_GA(T23, T28)

The TRS R consists of the following rules:

preorderC_in_ga(T5, T7) → U7_ga(T5, T7, preorder_dlA_in_ga(T5, T7))
preorder_dlA_in_ga(nil, []) → preorder_dlA_out_ga(nil, [])
preorder_dlA_in_ga(tree(T21, T22, T23), .(T22, T25)) → U1_ga(T21, T22, T23, T25, preorder_dlB_in_gaa(T21, T25, X26))
preorder_dlB_in_gaa(nil, T35, T35) → preorder_dlB_out_gaa(nil, T35, T35)
preorder_dlB_in_gaa(tree(T44, T45, T46), .(T45, T48), X55) → U4_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T44, T48, X54))
preorder_dlB_in_gaa(tree(T44, T45, T46), .(T45, T48), X55) → U5_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T44, T48, T51))
U5_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T44, T48, T51)) → U6_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T46, T51, X55))
U6_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T46, T51, X55)) → preorder_dlB_out_gaa(tree(T44, T45, T46), .(T45, T48), X55)
U4_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T44, T48, X54)) → preorder_dlB_out_gaa(tree(T44, T45, T46), .(T45, T48), X55)
U1_ga(T21, T22, T23, T25, preorder_dlB_out_gaa(T21, T25, X26)) → preorder_dlA_out_ga(tree(T21, T22, T23), .(T22, T25))
preorder_dlA_in_ga(tree(T21, T22, T23), .(T22, T25)) → U2_ga(T21, T22, T23, T25, preorder_dlB_in_gaa(T21, T25, T28))
U2_ga(T21, T22, T23, T25, preorder_dlB_out_gaa(T21, T25, T28)) → U3_ga(T21, T22, T23, T25, preorder_dlA_in_ga(T23, T28))
U3_ga(T21, T22, T23, T25, preorder_dlA_out_ga(T23, T28)) → preorder_dlA_out_ga(tree(T21, T22, T23), .(T22, T25))
U7_ga(T5, T7, preorder_dlA_out_ga(T5, T7)) → preorderC_out_ga(T5, T7)

The argument filtering Pi contains the following mapping:
preorderC_in_ga(x1, x2)  =  preorderC_in_ga(x1)
U7_ga(x1, x2, x3)  =  U7_ga(x3)
preorder_dlA_in_ga(x1, x2)  =  preorder_dlA_in_ga(x1)
nil  =  nil
preorder_dlA_out_ga(x1, x2)  =  preorder_dlA_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
preorder_dlB_in_gaa(x1, x2, x3)  =  preorder_dlB_in_gaa(x1)
preorder_dlB_out_gaa(x1, x2, x3)  =  preorder_dlB_out_gaa
U4_gaa(x1, x2, x3, x4, x5, x6)  =  U4_gaa(x6)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
preorderC_out_ga(x1, x2)  =  preorderC_out_ga
PREORDER_DLA_IN_GA(x1, x2)  =  PREORDER_DLA_IN_GA(x1)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x3, x5)

We have to consider all (P,R,Pi)-chains

(17) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(18) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

PREORDER_DLA_IN_GA(tree(T21, T22, T23), .(T22, T25)) → U2_GA(T21, T22, T23, T25, preorder_dlB_in_gaa(T21, T25, T28))
U2_GA(T21, T22, T23, T25, preorder_dlB_out_gaa(T21, T25, T28)) → PREORDER_DLA_IN_GA(T23, T28)

The TRS R consists of the following rules:

preorder_dlB_in_gaa(nil, T35, T35) → preorder_dlB_out_gaa(nil, T35, T35)
preorder_dlB_in_gaa(tree(T44, T45, T46), .(T45, T48), X55) → U4_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T44, T48, X54))
preorder_dlB_in_gaa(tree(T44, T45, T46), .(T45, T48), X55) → U5_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T44, T48, T51))
U4_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T44, T48, X54)) → preorder_dlB_out_gaa(tree(T44, T45, T46), .(T45, T48), X55)
U5_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T44, T48, T51)) → U6_gaa(T44, T45, T46, T48, X55, preorder_dlB_in_gaa(T46, T51, X55))
U6_gaa(T44, T45, T46, T48, X55, preorder_dlB_out_gaa(T46, T51, X55)) → preorder_dlB_out_gaa(tree(T44, T45, T46), .(T45, T48), X55)

The argument filtering Pi contains the following mapping:
nil  =  nil
tree(x1, x2, x3)  =  tree(x1, x2, x3)
preorder_dlB_in_gaa(x1, x2, x3)  =  preorder_dlB_in_gaa(x1)
preorder_dlB_out_gaa(x1, x2, x3)  =  preorder_dlB_out_gaa
U4_gaa(x1, x2, x3, x4, x5, x6)  =  U4_gaa(x6)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
PREORDER_DLA_IN_GA(x1, x2)  =  PREORDER_DLA_IN_GA(x1)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x3, x5)

We have to consider all (P,R,Pi)-chains

(19) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(20) Obligation:

Q DP problem:
The TRS P consists of the following rules:

PREORDER_DLA_IN_GA(tree(T21, T22, T23)) → U2_GA(T23, preorder_dlB_in_gaa(T21))
U2_GA(T23, preorder_dlB_out_gaa) → PREORDER_DLA_IN_GA(T23)

The TRS R consists of the following rules:

preorder_dlB_in_gaa(nil) → preorder_dlB_out_gaa
preorder_dlB_in_gaa(tree(T44, T45, T46)) → U4_gaa(preorder_dlB_in_gaa(T44))
preorder_dlB_in_gaa(tree(T44, T45, T46)) → U5_gaa(T46, preorder_dlB_in_gaa(T44))
U4_gaa(preorder_dlB_out_gaa) → preorder_dlB_out_gaa
U5_gaa(T46, preorder_dlB_out_gaa) → U6_gaa(preorder_dlB_in_gaa(T46))
U6_gaa(preorder_dlB_out_gaa) → preorder_dlB_out_gaa

The set Q consists of the following terms:

preorder_dlB_in_gaa(x0)
U4_gaa(x0)
U5_gaa(x0, x1)
U6_gaa(x0)

We have to consider all (P,Q,R)-chains.

(21) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • U2_GA(T23, preorder_dlB_out_gaa) → PREORDER_DLA_IN_GA(T23)
    The graph contains the following edges 1 >= 1

  • PREORDER_DLA_IN_GA(tree(T21, T22, T23)) → U2_GA(T23, preorder_dlB_in_gaa(T21))
    The graph contains the following edges 1 > 1

(22) YES